﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Business.Migrations
{
    public partial class add_CancelAppointment : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "CancelAppointment",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    CancelAppointmentremind = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ContainerCoding = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ApplicantName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Status = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CancelDocumentCode = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CauseProblem = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    DocumentsType = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    BuyersID = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CancelShippingCarrier = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    WarehouseName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ERPOrderNo = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CancelWarehouseLocation = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HandoverStatus = table.Column<int>(type: "int", nullable: false),
                    DocumentRemarks = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    OnlineOrderNo = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RawOrderNo = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    DocumentCodeType = table.Column<int>(type: "int", nullable: false),
                    CancelWarehouseStatus = table.Column<int>(type: "int", nullable: false),
                    Applicationtimeline = table.Column<int>(type: "int", nullable: false),
                    RawOrderOutboundTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    HandoverTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    StoreName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CancelWarehouseType = table.Column<int>(type: "int", nullable: false),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
                    ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_CancelAppointment", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "CancelAppointment");
        }
    }
}
